package com.example.demo.model.converter;

import com.example.demo.model.core.PageVo;
import com.example.demo.model.entity.SysPermission;
import com.example.demo.model.form.PermissionForm;
import com.example.demo.model.vo.PermissionVO;
import org.mapstruct.Mapper;

@Mapper(componentModel = "spring")
public interface SysPermissionConverter {


    SysPermission toEntity(PermissionForm permissionForm);

    PermissionForm toForm(SysPermission entity);

    PageVo<PermissionVO> toPageVo(PageVo<SysPermission> pageVo);

    PermissionVO toVo(SysPermission value);
}
